 /**
  * 路由请求 : 链数据详情
  * @Author  : ljq
  * @Created : 2025/10/14
  */
import request from '@/utils/request'

// 查询链数据详情列表
export function listChainDetail(query) {
  return request({
    url: '/business/chainDetail/list',
    method: 'get',
    params: query
  })
}

// 查询链数据详情详细
export function getChainDetail(id) {
  return request({
    url: '/business/chainDetail/' + id,
    method: 'get'
  })
}

// 多查询链数据详情详细
export function getChainDetailBatch(ids) {
  return request({
    url: '/business/chainDetail/batch/' + ids,
    method: 'get'
  })
}

// 新增链数据详情
export function addChainDetail(data) {
  return request({
    url: '/business/chainDetail/',
    method: 'post',
    data: data
  })
}

// 修改链数据详情
export function updateChainDetail(data) {
  return request({
    url: '/business/chainDetail/',
    method: 'put',
    data: data
  })
}

// 删除链数据详情
export function delChainDetail(id) {
  return request({
    url: '/business/chainDetail/' + id,
    method: 'delete'
  })
}
